<template>
  <!-- <div style="textAlign:right">
    <a-button style="width:100%" class="submit-audit" @click="emitEvent">{{instance.btName}}</a-button>
  </div> -->
  <div class="submit-audit-wrap" :style="instance.customStyle" :class="instance.customClass">
    <a-button style="width:100%" class="other-button" :style="instance.customButtonItemStyle" v-bind="instance" @click="emitEvent">{{instance.btName}}</a-button>
  </div>
</template>

<script>
export default {
  props: {
    instance: Object
  },
  data() {
    return {

    }
  },
  methods: {
    emitEvent() {
      // this.$emit(this.instance.cb)
      this.$emit('btnHandler', {cb: this.instance.cb})
    }
  }
}
</script>
